import { Injectable } from '@nestjs/common'
import { InjectRepository } from '@nestjs/typeorm'
import { Repository } from 'typeorm'
import { Logs } from './logs.entity'

@Injectable()
export class LogsService {
  constructor(
    @InjectRepository(Logs)
    private readonly logsRepository: Repository<Logs>
  ) {}
  async findAll(): Promise<Logs[]> {
    return await this.logsRepository.find()
  }
}
